package com.yidian.server.goods;

import com.yidian.entity.PageResult;
import com.yidian.pojo.goods.Spec;

import java.util.List;
import java.util.Map;

/**
 * @author whb
 * @create 2021-05-17 20:46
 * @decription 商品规格Service接口
 */
public interface SpecService {
    public List<Spec> findAll();

    public PageResult<Spec> findPage(int page, int size);

    public List<Spec> findList(Map<String, Object> searchMap);

    public PageResult<Spec> findPage(Map<String, Object> searchMap, int page, int size);

    public Spec findById(Integer id);

    public void add(Spec spec);

    public void update(Spec spec);

    public void delete(Integer id);
}
